import pymysql
 
conn = pymysql.connect(host="120.25.250.77",user="root",password="rootroot",database="word",charset="utf8")
cursor = conn.cursor()
sql = "SELECT current_user;"
cursor.execute(sql)
ret = cursor.fetchone()
print(ret)
cursor.close()
conn.close()